package org.neusoft.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.neusoft.dto.ArticleCondition;
import org.neusoft.entity.Articles;
import org.neusoft.vo.ArticleInfoVo;
import org.neusoft.vo.ArticleVo;
import org.neusoft.vo.ArticlesVo;

import java.util.List;

/**
 * ArticlesMapper 接口
 *
 * @AUTHOR bianj
 * @DATE 2024/12/16
 * @DESCRIBE Articles 表的 MyBatis Mapper 接口
 */
@Mapper
public interface ArticlesMapper extends BaseMapper<Articles> {
    public ArticleVo getArticleDetail(@Param("article_id") Long aid);
    List<ArticleVo> getAllArticles(ArticleCondition articleCondition);

    int getArticleCount(ArticleCondition articleCondition);
}